package VN.EDU.IMIC.DEVELOPER.DOTHANHTUNG.ARRAYLISTBAI3;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;

public class Model {
	public String print(ArrayList<student> studentArray){
		Collections.sort(studentArray);
		String str = "";
		for (student studentObj : studentArray){
			
			 str += studentObj.getStudentID()+ " "+studentObj.getStudentFirstName()+" " 
					+ studentObj.getStudentLastName()+" "+studentObj.getStudentMark()+"\n";
			
		}
		return str;
	}
}
